<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/vr/VR.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/vr/VR.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'vrid',
                    footer: "Foots",
                    cnName: '全景图',
                    name: 'VR',
                    url: "/VR/",
                    sortName: "vrid"
                },
                extend: extend,
                editFormFields: {"name":""},
                editFormOptions: [[{"title":"全景图名称","required":true,"field":"name","type":"text"}]],
                searchFormFields: {"name":""},
                searchFormOptions: [[{"title":"全景图名称","field":"name","type":"like"}]],
                columns: [{field:'name',title:'全景图名称',type:'string',width:220,require:true,align:'left',sortable:true},
                       {field:'vrid',title:'全景图id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'}],
                detail: {
                    cnName:"全景图信息",
                    columns: [{field:'dataMark',title:'标记点',type:'string',width:90,hidden:true,align:'left'},
                       {field:'scenesId',title:'场景id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'scenesImg',title:'场景全景图',type:'img',width:220,edit:{type:'img'},align:'left',sortable:true},
                       {field:'scenesName',title:'场景名称',type:'string',width:220,edit:{type:'text'},align:'left'},
                       {field:'vrid',title:'全景图id',type:'int',width:90,hidden:true,require:true,align:'left'}],
                    sortName: "scenesId",
                    key:"scenesId"
                }
            };
        }
    };
    export default vueParam;
</script>
